package com.bsj.pay.service;

import java.util.List;

import com.bsj.pay.common.Result;
import com.bsj.pay.model.AccountBean;
import com.bsj.pay.model.ChargeAccountBean;
import com.github.pagehelper.PageInfo;

public interface ChargeAccountService extends BaseService<ChargeAccountBean>{
	int removeByTime(long startTime,long endTime);
	
	int addBindFailCount(Long id);
	
	long failChargeCount(Long partner,String account);
	
	int getChargeSuccAmountById(Long charge_account_id);
	
	int batchFailByPartnerId(Long partnerId);
	
	int getLeftAmount(); 
	
	double sumMoney(ChargeAccountBean chargeAccount);
	
	Result receiveOrder(ChargeAccountBean insertModel);
	
	List<ChargeAccountBean> queryDayList(ChargeAccountBean chargeAccount);
	
	PageInfo<ChargeAccountBean> pageDayFinanceList(ChargeAccountBean t,int pageNum,int pageSize);
	
	/*List<ChargeAccountBean> getLeftCount();
	
	ChargeAccountBean getLeftCountByAmount(int amount);*/
	
	void procesSuccOrder(Long id);
	
	void PartnerNotifyTask()throws Exception;
	
	boolean partnerNotify(Long chargeAccountId) throws Exception;
	
	void CheckChargeAccountTask()throws Exception;
	
	void checkChargeAccount(AccountBean account,ChargeAccountBean chargeAccount);
}
